From b227a2f1906b4fba8e96ecce30df45fb4c27b050 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 30 Jan 2020 08:55:44 +0100 Subject: [PATCH] icon-theme: Use GtkSnapshot, not GdkSnapshot --- gtk/gtkicontheme.c | 4 ++-- gtk/gtkicontheme.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 4f8bf9cfd7..070fb84aa1 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -3995,7 +3995,7 @@ gtk_icon_download_colored_texture (GtkIcon *self, static void icon_paintable_snapshot (GdkPaintable *paintable, - GdkSnapshot *snapshot, + GtkSnapshot *snapshot, double width, double height) { @@ -4023,7 +4023,7 @@ icon_paintable_snapshot (GdkPaintable *paintable, void gtk_icon_snapshot_with_colors (GtkIcon *icon, - GdkSnapshot *snapshot, + GtkSnapshot *snapshot, double width, double height, const GdkRGBA *foreground_color, diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index c40f0867d0..45ca609363 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -38,7 +38,7 @@ G_BEGIN_DECLS #define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME)) typedef struct _GtkIcon GtkIcon; -typedef struct _GtkIconTheme GtkIconTheme; +typedef struct _GtkIconTheme GtkIconTheme; /** * GtkIconLookupFlags: @@ -205,8 +205,8 @@ GdkTexture * gtk_icon_download_colored_texture (GtkIcon *self, const GdkRGBA *error_color, GError **error); GDK_AVAILABLE_IN_ALL -void gtk_icon_snapshot_with_colors (GtkIcon *icon_info, - GdkSnapshot *snapshot, +void gtk_icon_snapshot_with_colors (GtkIcon *icon, + GtkSnapshot *snapshot, double width, double height, const GdkRGBA *foreground_color, -- 2.30.2